//
//  ScrollLabelView.h
//  SortDictTest
//
//  Created by lilubin on 15/7/16.
//  Copyright (c) 2015年 lilubin. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, LabelViewScrollDirection)
{
    // 水平滚动
    LabelScrollDirectionLandscape,
    // 垂直滚动
    LabelScrollDirectionPortait
};

/*
typedef NS_ENUM(NSInteger, BannerViewPageStyle)
{
    PageStyle_None,
    PageStyle_Left,
    PageStyle_Right,
    PageStyle_Middle
};
 */


@protocol ScrollLabelViewDelegate;

@interface ScrollLabelView : UIView
<
UIScrollViewDelegate
//SDWebImageManagerDelegate
>
{
    UIScrollView *scrollView;
    UIButton *BannerCloseButton;
    
    NSInteger totalPage;
    NSInteger curPage;
}

@property (nonatomic, assign) id <ScrollLabelViewDelegate> delegate;

// 存放所有需要滚动的图片URL NSString
@property (nonatomic, strong) NSArray *imagesArray;
// scrollView滚动的方向
@property (nonatomic, assign) LabelViewScrollDirection scrollDirection;

@property (nonatomic, assign) NSTimeInterval rollingDelayTime;

- (id)initWithFrame:(CGRect)frame scrollDirection:(LabelViewScrollDirection)direction images:(NSArray *)images;

- (void)reloadBannerWithData:(NSArray *)images;

- (void)startDownloadImage;
- (void)setSquare:(NSInteger)asquare;
//- (void)setPageControlStyle:(BannerViewPageStyle)pageStyle;
- (void)showClose:(BOOL)show;

- (void)startRolling;
- (void)stopRolling;

@end

@protocol ScrollLabelViewDelegate <NSObject>

@optional
- (void)labelCachedDidFinish:(ScrollLabelView *)labelView;
- (void)labelView:(ScrollLabelView *)labelView didSelectlabelView:(NSInteger)index withData:(NSDictionary *)labelData;

- (void)labelViewdidClosed:(ScrollLabelView *)labelView;

@end

